#conv_wrapper {
  width: 100%;
}

#conv_main {
  width: 500px;
  margin: auto;
}

.conv-chat-box
{
    width: 400px;
    margin: auto;
}

.header
{
    padding: 10px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    background-color: #6d84b4;
}

.conv_messages
{
    padding: 10px;
    height: 100px;
    background-color: green;
    background-color: rgb(237, 239, 244);
    border-width: 1px;
    border-color: black;
    border-style: solid;
    overflow-y: scroll;
}

.conv_messages ul
{
    padding: 0px;
    list-style-type: none;
}

.conv_messages ul li
{
    height: auto;
    margin-bottom: 10px;
    clear: both;
    padding-left: 10px;
    padding-right: 10px;
}

.conv_messages ul li span
{
    display: inline-block;
    max-width: 200px;
    background-color: white;
    padding: 5px;
    border-radius: 4px;
    position: relative;
    border-width: 1px;
    border-style: solid;
    border-color: grey;
}

.conv_messages ul li span.left
{
    float: left;
}

.conv_messages ul li span.left:after
{
    content: "";
    display: inline-block;
    position: absolute;
    left: -8.5px;
    top: 7px;
    height: 0px;
    width: 0px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.conv_messages ul li span.left:before
{
    content: "";
    display: inline-block;
    position: absolute;
    left: -9px;
    top: 7px;
    height: 0px;
    width: 0px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid black;
}

.conv_messages ul li span.right:after
{
    content: "";
    display: inline-block;
    position: absolute;
    right: -8px;
    top: 6px;
    height: 0px;
    width: 0px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #dbedfe;
}

.conv_messages ul li span.right:before
{
    content: "";
    display: inline-block;
    position: absolute;
    right: -9px;
    top: 6px;
    height: 0px;
    width: 0px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid black;
}

.conv_messages ul li span.right
{
    float: right;
    background-color: #dbedfe;
}

.clear
{
    clear: both;
}

.input-box
{
    background-color: white;
    height: 50px;
    padding: 0px;
}

.input-box
{
    padding: 0px;
    width: 378px;
    height: 100%;
    display: inline-block;
    outline: 0px;
    border-width: 0px;
    resize: none;
    border-width: 1px;
    border-color: black;
    border-style: solid;
    font-size: 12px;
    padding: 10px;
    border-top-width: 0px;
}

input#message {
    display: inline-block;
    width: 300px;
    height: 40px;
}

span.seen {
  color: green;
  border-width: 0 !important;
}

.sent {
  color: grey;
  border-width: 0 !important;

}

span.submit input {
  color: green;
  width: 67px;
}

#wrapper {
  font-family: Arial, Helvetica, sans-serif;
}

#chatbox{
  width:70%;
  overflow-x:hidden;
    overflow-y:visible;
    height:500px;
  background-color: gray;
}

.message_list{
  padding-left: 30px;
  font-family: Arial, Helvetica, sans-serif;
  color:#3d3d3d;
  text-shadow: 1px 1px 0px #fff;
}

.messages{
  margin: 0 auto;
  width: 50%;
  padding: 20px;
}

dialog{
  display:inline-block;
  font-size: 1.3em;
  color: blue;
  border: none;
}

table a:link {
  color: #666;
  font-weight: bold;
  text-decoration: none;
}
table a:visited {
  color: #666;
  font-weight: bold;
  text-decoration:none;
}
table a:active,
table a:hover {
	color: #bd5a35;
	text-decoration:underline;
}

table {
	font-family:Arial, Helvetica, sans-serif;
	color:#666;
	font-size:12px;
	text-shadow: 1px 1px 0px #fff;
	background:#eaebec;
	margin:20px;
	border:#ccc 1px solid;

	-moz-border-radius:3px;
	-webkit-border-radius:3px;
	border-radius:3px;

	-moz-box-shadow: 0 1px 2px #d1d1d1;
	-webkit-box-shadow: 0 1px 2px #d1d1d1;
	box-shadow: 0 1px 2px #d1d1d1;
}

table tr:first-child th:first-child {
	-moz-border-radius-topleft:3px;
	-webkit-border-top-left-radius:3px;
	border-top-left-radius:3px;
}
table tr:first-child th:last-child {
	-moz-border-radius-topright:3px;
	-webkit-border-top-right-radius:3px;
	border-top-right-radius:3px;
}
table tr {
	text-align: center;
	padding-left:20px;
}
table td:first-child {
	text-align: left;
	padding-left:20px;
	border-left: 0;
}
table td {
	padding:18px;
	border-top: 1px solid #ffffff;
	border-bottom:1px solid #e0e0e0;
	border-left: 1px solid #e0e0e0;

	background: #fafafa;
	background: -webkit-gradient(linear, left top, left bottom, from(#fbfbfb), to(#fafafa));
	background: -moz-linear-gradient(top,  #fbfbfb,  #fafafa);
}
table tr.even td {
	background: #f6f6f6;
	background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f6f6f6));
	background: -moz-linear-gradient(top,  #f8f8f8,  #f6f6f6);
}
table tr:last-child td {
	border-bottom:0;
}
table tr:last-child td:first-child {
	-moz-border-radius-bottomleft:3px;
	-webkit-border-bottom-left-radius:3px;
	border-bottom-left-radius:3px;
}
table tr:last-child td:last-child {
	-moz-border-radius-bottomright:3px;
	-webkit-border-bottom-right-radius:3px;
	border-bottom-right-radius:3px;
}
table tr:hover td {
	background: #f2f2f2;
	background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f0f0f0));
	background: -moz-linear-gradient(top,  #f2f2f2,  #f0f0f0);
}

a#message_seen {
  font-weight: normal;
  color: #3D3D3D;
}

a#message_unseen {
  font-weight: bold;
  color: #666;
}
